ke.create({
	data:{
		headimg:null,
		form:{},
		rules:{
			touser: [
				{ required: true, message: '请输入接收者openid', trigger: 'blur' },
				{ max: 50, message: 'openid应在 50 个字符内', trigger: 'blur' }
			],
		}
	},
	methods:{
		submitForm:function(){
			this.$refs['form'].validate(function(valid){
				if (valid) {
					var loading = vm.$loading({
			          lock: true,
			          text: '请求处理中',
			          background: 'rgba(0, 0, 0, 0.7)'
			        })
					http.post({
						data:vm.form,
						success:function(res){
							loading.close()
							if(res.code === 0){
								vm.$alert(res.msg)
							}else{
								vm.$message.success('消息发送成功')
							}

						}
					})
				}
			})

		},
	},
	created:function(){
		if(this.data && this.data.item){
			this.form=this.data.item
		}
	}
})